<?php

namespace app\admin\controller;
use think\Controller;
use think\Db;

class Job extends Controller {

	public function lst() {

		$list = Db::name('job')->where('isdel', 0)->field('id,title,name,sex,bplace,education')->select();
		$this->assign('list', $list); // 赋值数据集
		$jobres = '1213';
		$this->assign('jobres', $jobres);
		return $this->fetch();
	}
	public function detail() {

		$id = input('get.id');

		$jobs = Db::name('job')->find($id);
		$this->assign('jobs', $jobs);
		return $this->fetch();

	}
	public function del() {

		$id = input('get.id');

		$jobs = Db::name('job')->where('id', $id)->setField('isdel', 1);
		$this->success('删除成功');
	}

}
